﻿<Window x:Class="WpfDataStreamDemo.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="100*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="50*"/>
            <ColumnDefinition Width="50*"/>
        </Grid.ColumnDefinitions>
        <ComboBox Grid.Row="0" Grid.Column="0" ItemsSource="{Binding TestWithLatency}" DisplayMemberPath="[1]" SelectedIndex="0"/>
        <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Center">
            <Button Content="Pause" Command="{Binding Pause}"/>
            <Button Content="Continue" Command="{Binding Continue}"/>
        </StackPanel>
        <ListBox Grid.Row="1" Grid.Column="0" ItemsSource="{Binding Test}" DisplayMemberPath="[1]"/>
        <ListBox Grid.Row="1" Grid.Column="1" ItemsSource="{Binding Test}" DisplayMemberPath="[1]"/>
    </Grid>
</Window>
